import { defineStore } from "pinia"
 
const useUserInfoStore = defineStore('userInfo', {
  // defineStore('userInfo',{})  userInfo就是这个仓库的名称name
    state: () => ({
        username: null,
        password: '',
        img: 'https://codelover.club/files/stutasks/userID_791/currNo_43/FvakHS-CuyV7r3_nCUTx8kClN-Sh/assets/4ac8c27cc785ab98fafe8f9e0ee04e3-DOp98-hS.jpg',
    }),
    getters: {
    },
    actions:{
    },
    persist: {
        storage: sessionStorage
    }
})
 
export default useUserInfoStore